import request from '@/utils/request'

// 查询收付款类别列表
export function listPaidSort(query) {
  return request({
    url: '/house_sale/PaidSort/list',
    method: 'get',
    params: query
  })
}

// 查询收付款类别详细
export function getPaidSort(paidsortid) {
  return request({
    url: '/house_sale/PaidSort/' + paidsortid,
    method: 'get'
  })
}

// 新增收付款类别
export function addPaidSort(data) {
  return request({
    url: '/house_sale/PaidSort',
    method: 'post',
    data: data
  })
}

// 修改收付款类别
export function updatePaidSort(data) {
  return request({
    url: '/house_sale/PaidSort',
    method: 'put',
    data: data
  })
}

// 删除收付款类别
export function delPaidSort(paidsortid) {
  return request({
    url: '/house_sale/PaidSort/' + paidsortid,
    method: 'delete'
  })
}
